#ifndef DBEXCEPTION_H
#define DBEXCEPTION_H

#include "Exception.h"

namespace ZY {

    class DbException : public Exception
    {
        public:
            __construct( DbException )
            DbException( const string &msg , const int code , const int eno ) {_DbException(msg,code,eno);}
            DbException( const char *msg , const int code , const int eno ) {string str(msg,strlen(msg)); _DbException(str,code,eno);}
            virtual ~DbException();
        protected:
        private:
            void _DbException( const string &msg , const int code , const int eno );
    };

}

#endif // DBEXCEPTION_H
